<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>OpenLayers v8.2.0 API - Class: Projection</title>
    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
        crossorigin="anonymous"></script>
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/fontawesome.min.css"
        crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/solid.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/brands.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="styles/prettify-tomorrow.css">
    <link rel="stylesheet" type="text/css" href="styles/jaguar.css">
    <link rel="stylesheet" type="text/css" href="styles/carbon.css">
    <link rel="stylesheet" type="text/css" href="/theme/ol.css">
    <link rel="stylesheet" type="text/css" href="/theme/site.css">
</head>

<body>
    <header class="navbar navbar-expand-sm navbar-dark mb-3 px-3 py-0 fixed-top" role="navigation">
        <a class="navbar-brand" href="/"><img src="/theme/img/logo-dark.svg" width="70" height="70"
                alt="">&nbsp;OpenLayers</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#olmenu"
            aria-controls="olmenu" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <!-- menu items that get hidden below 768px width -->
        <nav class="collapse navbar-collapse" id="olmenu">
            <ul class="nav navbar-nav ms-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="docdropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Docs</a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="docdropdown">
                        <a class="dropdown-item" href="/doc/">Docs</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="/doc/quickstart.html"><i
                                class="fa fa-check fa-fw me-2 fa-lg"></i>快速入门</a>
                        <a class="dropdown-item" href="/doc/faq.html"><i
                                class="fa fa-question fa-fw me-2 fa-lg"></i>FAQ</a>
                        <a class="dropdown-item" href="/doc/tutorials/"><i
                                class="fa fa-book fa-fw me-2 fa-lg"></i>Tutorials</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="https://stackoverflow.com/questions/tagged/openlayers"><i
                                class="fab fa-stack-overflow fa-fw me-2"></i>Ask a Question</a>
                    </div>
                </li>
                <li class="nav-item"><a class="nav-link" href="/en/latest/examples/">Examples</a></li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="apidropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <i class="fa fa-sitemap me-1"></i>API
                    </a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="apidropdown">
                        <a class="dropdown-item" href="/en/latest/apidoc/"><i
                                class="fa fa-sitemap fa-fw me-2 fa-lg"></i>v8.2.0
                            (latest)</a </div>
                </li>
            </ul>
        </nav>
    </header>

    <div class="container-fluid">
        <div id="wrap" class="row">
            <div class="navigation col-md-4 col-lg-3">
                <div class="search-wrapper">
                    <div class="search">
                        <input id="search" type="text" autocomplete="off" class="form-control input-sm"
                            placeholder="Search Documentation">
                    </div>
                </div>
                <div class="navigation-list-wrapper">
                    <ul class="navigation-list search-empty">
                        <li class="item item-class toggle-manual toggle-manual-show"
                            data-longname="module:ol/proj/Projection~Projection" data-name="ol/proj/projection">
                            <span class="title toggle">
                                <span class="fa fa-chevron-right me-2 mt-1"></span>
                                <span><a
                                        href="module-ol_proj_Projection-Projection.html">ol​/proj​/Projection</a></span>
                            </span>
                            <div class="member-list" data-type="methods">
                                <span class="subtitle">Methods</span>
                                <ul>
                                    <li data-name="getaxisorientation"><a
                                            href="module-ol_proj_Projection-Projection.html#getAxisOrientation">getAxisOrientation</a>
                                    <li data-name="getcode"><a
                                            href="module-ol_proj_Projection-Projection.html#getCode">getCode</a>
                                    <li data-name="getextent"><a
                                            href="module-ol_proj_Projection-Projection.html#getExtent">getExtent</a>
                                    <li data-name="getmetersperunit"><a
                                            href="module-ol_proj_Projection-Projection.html#getMetersPerUnit">getMetersPerUnit</a>
                                    <li data-name="getunits"><a
                                            href="module-ol_proj_Projection-Projection.html#getUnits">getUnits</a>
                                    <li data-name="getworldextent"><a
                                            href="module-ol_proj_Projection-Projection.html#getWorldExtent">getWorldExtent</a>
                                    <li data-name="isglobal"><a
                                            href="module-ol_proj_Projection-Projection.html#isGlobal">isGlobal</a>
                                    <li data-name="setextent"><a
                                            href="module-ol_proj_Projection-Projection.html#setExtent">setExtent</a>
                                    <li data-name="setgetpointresolution"><a
                                            href="module-ol_proj_Projection-Projection.html#setGetPointResolution">setGetPointResolution</a>
                                    <li data-name="setglobal"><a
                                            href="module-ol_proj_Projection-Projection.html#setGlobal">setGlobal</a>
                                    <li data-name="setworldextent"><a
                                            href="module-ol_proj_Projection-Projection.html#setWorldExtent">setWorldExtent</a>
                                </ul>
                            </div>
                        <li class="loading">Loading …
                    </ul>
                </div>
            </div>

            <div class="main col-md-8 col-lg-9">
                <h1 class="page-title" data-filename="module-ol_proj_Projection-Projection.html">Class: Projection</h1>
                <div id="latest-check" class="alert alert-warning alert-dismissible" role="alert" style="display:none">
                    <button id="latest-dismiss" type="button" class="btn-close" data-bs-dismiss="alert"
                        aria-label="Close"></button>
                    This documentation is for OpenLayers v<span id="package-version">8.2.0</span>. The <a
                        id="latest-link" href="#" class="alert-link">latest</a> is v<span id="latest-version"></span>.
                </div>




                <section class="content">

                    <header>
                        <h2 class="my-3">
                            <span class="ancestors"><a
                                    href="module-ol_proj_Projection.html">ol/proj/Projection</a>~</span>Projection
                        </h2>
                        <br>



                        <pre
                            class="prettyprint source"><code>import Projection from '<a href="module-ol_proj_Projection.html">ol/proj/Projection</a>.js';</code></pre>


                        <div class="row p-3 ">
                            <!-- <div id="ad" class="col-lg-5 order-2 align-self-center border rounded bg-light ">
                                <script async type="text/javascript"
                                    src="https://cdn.carbonads.com/carbon.js?serve=CE7DV53U&placement=openlayersorg"
                                    id="_carbonads_js"></script>
                            </div> -->

                            <div class="class-description col-lg-7 align-self-center ps-0">
                                <p>投影定义类。应用程序支持的每个投影都会创建其中一个，并存储在<a
                                        href="module-ol_proj.html"><code>ol/proj</code></a>命名空间中。您可以在应用程序中使用这些投影，但这并非必需，因为
                                    API 参数和选项使用<a
                                        href="module-ol_proj.html#~ProjectionLike"><code>ProjectionLike</code></a>，这意味着简单的字符串代码就足够了。
                                </p>
                                <p>您可以使用<a href="module-ol_proj.html#.get"><code>get</code></a>方法来检索特定投影的对象。</p>
                                <p>该库包含对<code>EPSG:4326</code>和<code>EPSG:3857</code> 的定义，以及以下别名：
                                </p>
                                <ul>
                                    <li><code>EPSG:4326</code>: CRS:84, urn:ogc:def:crs:EPSG:6.6:4326,
                                        urn:ogc:def:crs:OGC:1.3:CRS84, urn:ogc:def:crs:OGC:2:84,
                                        <a
                                            href="http://www.opengis.net/gml/srs/epsg.xml#4326">http://www.opengis.net/gml/srs/epsg.xml#4326</a>,
                                        urn:x-ogc:def:crs:EPSG:4326
                                    </li>
                                    <li><code>EPSG:3857</code>: EPSG:102100, EPSG:102113, EPSG:900913,
                                        urn:ogc:def:crs:EPSG:6.18:3:3857,
                                        <a
                                            href="http://www.opengis.net/gml/srs/epsg.xml#3857">http://www.opengis.net/gml/srs/epsg.xml#3857</a>
                                    </li>
                                </ul>
                                <p>如果您使用<a
                                        href="https://github.com/proj4js/proj4js">proj4js</a>，可以使用<code>proj4.defs()</code>
                                    添加别名。在添加所有必需的投影定义后，调用<a
                                        href="module-ol_proj_proj4.html#.register"><code>register</code></a>函数。
                                </p>
                            </div>

                        </div>
                    </header>

                    <article>
                        <div class="container-overview">



                            <dl>

                                <dt class="">

                                    <div class="nameContainer">
                                        <div class="anchor" id="Projection">
                                        </div>
                                        <h4 class="name">
                                            new Projection<span class="signature">(options)</span>



                                        </h4>

                                        <div class="tag-source">
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L52">line
                                                52</a>
                                        </div>

                                    </div>


                                </dt>
                                <dd class="">













                                    <table class="params">
                                        <thead>
                                            <tr>

                                                <th>Name</th>


                                                <th>Type</th>

                                                <th class="last">Description</th>
                                            </tr>
                                        </thead>

                                        <tbody>


                                            <tr class="">

                                                <td class="name"><code>code</code></td>



                                                <td class="type">


                                                    <span class="param-type">string</span>




                                                </td>



                                                <td class="description last">

                                                    <p>空间参考系统（SRS）标识符代码，例如<code>EPSG:4326</code>。 </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>units</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_proj_Units.html#~Units">Units</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>单位。除非为代码定义了 proj4 投影，否则这是必需的。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>extent</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_extent.html#~Extent">Extent</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>SRS 的有效范围。 </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>axisOrientation</code></td>



                                                <td class="type">


                                                    <span class="param-type">string</span>



                                                    (defaults to 'enu')


                                                </td>



                                                <td class="description last">

                                                    <p>按照 Proj4 中指定的轴方向。 </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>global</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to false)


                                                </td>



                                                <td class="description last">

                                                    <p>这个投影是否适用于整个地球。 </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>metersPerUnit</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>SRS的每单位米数。如果没有提供，则使用<code>单位(units)</code>从<code>METERS_PER_UNIT</code>查找表中获取每单位的米数。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>worldExtent</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_extent.html#~Extent">Extent</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>SRS的世界范围。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>getPointResolution</code></td>



                                                <td class="type">


                                                    <span class="param-type">function</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>确定某点分辨率的函数。该函数使用<code>number</code>视图分辨率和一个<a
                                                            href="module-ol_coordinate.html#~Coordinate"><code>Coordinate</code></a>作为参数，并返回在传递的坐标处投影单位中的<code>number</code>分辨率。如果<code>未定义(undefined)</code>此函数，则使用默认的<a
                                                            href="module-ol_proj.html#.getPointResolution"><code>getPointResolution</code></a>函数。
                                                    </p>
                                                </td>
                                            </tr>


                                        </tbody>
                                    </table>




                                    <dl class="details">





















                                    </dl>













                                </dd>

                            </dl>

                        </div>


















                        <h3 class="subsection-title">Methods</h3>

                        <dl>


                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getAxisOrientation">
                                    </div>
                                    <h4 class="name">
                                        getAxisOrientation<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{string}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L194">line
                                            194</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此投影的轴方向。示例值包括：enu - 默认的东向、北向、高程。neu - 北向、东向、向上 - 对“经纬度”地理坐标或南向横轴墨卡托投影有用。wnu -
                                        西向、北向、向上 - 一些行星坐标系具有“西向为正”的坐标系</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Axis orientation.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getCode">
                                    </div>
                                    <h4 class="name">
                                        getCode<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{string}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L141">line
                                            141</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此投影的代码，例如'EPSG:4326'。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Code.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getExtent">
                                    </div>
                                    <h4 class="name">
                                        getExtent<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_extent.html#~Extent">Extent</a>}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L150">line
                                            150</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此投影的有效范围。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Extent.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getMetersPerUnit">
                                    </div>
                                    <h4 class="name">
                                        getMetersPerUnit<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number | undefined}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L170">line
                                            170</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此投影每单位的米数。如果投影未配置<code>metersPerUnit</code>或单位标识符，则返回<code>undefined</code>。
                                    </p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Meters.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getUnits">
                                    </div>
                                    <h4 class="name">
                                        getUnits<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_proj_Units.html#~Units">Units</a>}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L159">line
                                            159</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此投影的单位。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Units.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getWorldExtent">
                                    </div>
                                    <h4 class="name">
                                        getWorldExtent<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_extent.html#~Extent">Extent</a>}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L179">line
                                            179</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p> 获取此投影的世界范围。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Extent.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="isGlobal">
                                    </div>
                                    <h4 class="name">
                                        isGlobal<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L203">line
                                            203</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p> 这是否是一个跨越整个世界的全球投影？</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                投影是否是全球的。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="setExtent">
                                    </div>
                                    <h4 class="name">
                                        setExtent<span class="signature">(extent)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L236">line
                                            236</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p> 为此投影设置有效范围。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>extent</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_extent.html#~Extent">Extent</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Extent.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="setGetPointResolution">
                                    </div>
                                    <h4 class="name">
                                        setGetPointResolution<span class="signature">(func)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L257">line
                                            257</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置getPointResolution函数（参见此投影的<a
                                            href="module-ol_proj.html#.getPointResolution"><code>getPointResolution</code></a>）。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>func</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">

                                                <p>Function</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="setGlobal">
                                    </div>
                                    <h4 class="name">
                                        setGlobal<span class="signature">(global)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L212">line
                                            212</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置投影是否是跨越整个世界的全球投影</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>global</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>




                                            </td>



                                            <td class="description last">

                                                <p> 投影是否是全球的。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="setWorldExtent">
                                    </div>
                                    <h4 class="name">
                                        setWorldExtent<span class="signature">(worldExtent)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js">proj/Projection.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/proj/Projection.js#L247">line
                                            247</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p> 为此投影设置世界范围。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>worldExtent</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_extent.html#~Extent">Extent</a></span>




                                            </td>



                                            <td class="description last">

                                                <p> 世界范围[minlon，minlat，maxlon，maxlat]。
                                                </p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>

                        </dl>





                    </article>

                </section>




            </div>
        </div>
    </div>
    <script>prettyPrint();</script>
    <script src="scripts/linenumber.js"></script>
    <script src="scripts/main.js"></script>
</body>

</html>